﻿#pragma once

#include <string>

class users {
public:
    // 构造函数
    users() = default;

    users(std::string userId, std::string uname,
        std::string dispName, std::string pwd,
        std::string ph, std::string rl,
        std::string idCard)
        : user_id(userId), username(uname), display_name(dispName),
        password(pwd), phone(ph), role(rl), id_card(idCard) {
    }

    // Getter 方法
    std::string getUserId() const { return user_id; }
    std::string getUsername() const { return username; }
    std::string getDisplayName() const { return display_name; }
    std::string getPassword() const { return password; }
    std::string getPhone() const { return phone; }
    std::string getRole() const { return role; }
    std::string getIdCard() const { return id_card; }
	std::string getState() const { return state; }

    // Setter 方法
    void setUserId(std::string id) { user_id = id; }
    void setUsername(std::string uname) { username = uname; }
    void setDisplayName(std::string dispName) { display_name = dispName; }
    void setPassword(std::string pwd) { password = pwd; }
    void setPhone(std::string ph) { phone = ph; }
    void setRole(std::string rl) { role = rl; }
    void setIdCard(std::string idCard) { id_card = idCard; }
	void setState(std::string st) { state = st; }

private:
    std::string user_id;
    std::string username;
    std::string display_name;
    std::string password;
    std::string phone;
    std::string role;
    std::string id_card;
	std::string state;
};